Skip to content

docs: Correct require statement in first example #45

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 21, 2020

Conversation

vernig
Copy link
Contributor

@vernig vernig commented May 21, 2020

Use destructuring to import TwilioServerlessApiClient in the first example. Without that the following error is thrown:

const client = new TwilioServerlessApiClient({
               ^
TypeError: TwilioServerlessApiClient is not a constructor

Contributing to Twilio

All third-party contributors acknowledge that any contributions they provide will be made under the same open-source license that the open-source project is provided under.

  • I acknowledge that all my contributions will be made under the project's license.

Use destructuring to import TwilioServerlessApiClient.
@vernig vernig changed the title doc:Correct require statement in first example doc: Correct require statement in first example May 21, 2020
@vernig vernig changed the title doc: Correct require statement in first example docs: Correct require statement in first example May 21, 2020
@dkundel dkundel merged commit f67323d into twilio-labs:master May 21, 2020
@vernig vernig deleted the doc/example-fix branch May 22, 2020 08:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants